package com.devplatform.pojo.points;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @TableName user_points
 */
@TableName(value = "user_points")
@Data
public class UserPoints {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer pointsId;

    /**
     *
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     *
     */
    private Integer totalPoints;

    /**
     *
     */
    private Integer points;

    /**
     *
     */
    private LocalDateTime changeTime;
}